home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsXULTreeAccessibleWrap.h < prev   
C/C++ Source or Header  |  2006-05-08  |  3KB  |  82 lines

  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public
  6.  * License Version 1.1 (the "License"); you may not use this file
  7.  * except in compliance with the License. You may obtain a copy of
  8.  * the License at http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS
  11.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12.  * implied. See the License for the specific language governing
  13.  * rights and limitations under the License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is Sun Microsystems, Inc.
  18.  * Portions created by Sun Microsystems are Copyright (C) 2002 Sun
  19.  * Microsystems, Inc. All Rights Reserved.
  20.  *
  21.  * Original Author: Pete Zha (pete.zha@sun.com)
  22.  *
  23.  * Contributor(s):
  24.  *   Kyle Yuan (kyle.yuan@sun.com)
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  28.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the NPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the NPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. #ifndef __nsXULTreeAccessibleWrap_h__
  41. #define __nsXULTreeAccessibleWrap_h__
  42.  
  43. #include "nsIAccessibleTable.h"
  44. #include "nsXULTreeAccessible.h"
  45.  
  46. typedef class nsXULTreeitemAccessible nsXULTreeitemAccessibleWrap;
  47.  
  48. class nsXULTreeAccessibleWrap : public nsXULTreeAccessible,
  49.                                 public nsIAccessibleTable
  50. {
  51. public:
  52.   NS_DECL_ISUPPORTS_INHERITED
  53.   NS_DECL_NSIACCESSIBLETABLE
  54.  
  55.   nsXULTreeAccessibleWrap(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
  56.   virtual ~nsXULTreeAccessibleWrap() {}
  57.  
  58.   NS_IMETHOD GetChildCount(PRInt32 *_retval);
  59.   NS_IMETHOD ChangeSelection(PRInt32 aIndex, PRUint8 aMethod, PRBool *aSelState);
  60.     
  61. private:
  62.   nsCOMPtr<nsIAccessible> mCaption;
  63.   nsString mSummary;
  64. };
  65.  
  66. class nsXULTreeColumnsAccessibleWrap : public nsXULTreeColumnsAccessible,
  67.                                        public nsIAccessibleTable
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS_INHERITED
  71.   NS_DECL_NSIACCESSIBLETABLE
  72.  
  73.   nsXULTreeColumnsAccessibleWrap(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
  74.   virtual ~nsXULTreeColumnsAccessibleWrap() {}
  75.  
  76. private:
  77.   nsCOMPtr<nsIAccessible> mCaption;
  78.   nsString mSummary;
  79. };
  80.  
  81. #endif
  82.